﻿using Senparc.Weixin.MP.AdvancedAPIs.TemplateMessage;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Weixin.Core.Model
{

    /// <summary>
    /// 定义模版中的字段属性（需与微信模版中的一致） 
    /// </summary>
    public class ProductTemplateData
    {

        /// <summary>
        /// 消息模版标题
        /// </summary>
        public TemplateDataItem first { get; set; }

        /// <summary>
        /// 订单金额
        /// </summary>
        public TemplateDataItem orderProductPrice { get; set; }

        /// <summary>
        /// 商品详情
        /// </summary>
        public TemplateDataItem orderProductName { get; set; }

        /// <summary>
        /// 发货信息
        /// </summary>
        public TemplateDataItem orderAddress { get; set; }

        /// <summary>
        /// 订单编号
        /// </summary>
        public TemplateDataItem orderName { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public TemplateDataItem remark { get; set; }

    }


    /// <summary>
    /// 模版
    /// </summary>
    public class ProductTemplate
    {
        /// <summary>
        /// 消息模版标题
        /// </summary>
        public string first { get; set; }

        /// <summary>
        /// 订单金额
        /// </summary>
        public string orderProductPrice { get; set; }

        /// <summary>
        /// 商品详情
        /// </summary>
        public string orderProductName { get; set; }

        /// <summary>
        /// 发货信息
        /// </summary>
        public string orderAddress { get; set; }

        /// <summary>
        /// 订单编号
        /// </summary>
        public string orderName { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }
    }

}
